<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            width: 100%;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .lb {
            width: 100%;
            height: 500px;
            position: relative;
            overflow: hidden;
        }

        .lb ol {
            width: 500%;
            position: absolute;
            left: -100%;
            transition: all .5s;
        }

        .lb ol li {
            float: left;
        }

        .lb ol li {
            width: 20%;
        }
    </style>
</head>

<body>
    <div class="lb">
        <ol>
            <li>
                <img src="https://www.jq22.com/demo/jquerylbt202112220954/images/t3.png" alt="">
            </li>
            <li>
                <img src="https://www.jq22.com/demo/jquerylbt202112220954/images/t1.png" alt="">
            </li>
            <li>
                <img src="https://www.jq22.com/demo/jquerylbt202112220954/images/t2.png" alt="">
            </li>
            <li>
                <img src="https://www.jq22.com/demo/jquerylbt202112220954/images/t3.png" alt="">
            </li>
            <li>
                <img src="https://www.jq22.com/demo/jquerylbt202112220954/images/t1.png" alt="">
            </li>
        </ol>
        <ul></ul>
    </div>
    <script>
        var ol = document.querySelector('ol');
        var startX = 0;
        var moveX = 0;
        var index = 0;
        var w = window.innerWidth;
        var time = setInterval(timer,2000);
        function timer(){
            index++;
            var translateX = -index * w;
            
        }
    </script>
</body>

</html>